﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.UI;

public class CandyView
{
    private int x;
    private int y;
   
    public int X { get => x; set => x = value; }
    public int Y { get => y; set => y = value; }

    private GameObject mObj;
    private Image imgCandy;

    public void Init(int _x, int _y, GameObject go)
    {
        x = _x;
        y = _y;
        mObj = go;
        imgCandy = mObj.transform.Find("Icon").GetComponent<Image>();
    }


    public void ResPos(float x, float y)
    {
        mObj.transform.localPosition = new Vector2(x,y);
    }

}

